Skip to content

A TSServer implementation that just uses the files list to avoid looking all over the file system. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

vikerman
Copy link
Owner

@vikerman vikerman commented Jun 9, 2017

Improves performance when running on a network file system.

@@ -202,7 +202,93 @@ namespace ts.server {

this.setInternalCompilerOptionsForEmittingJsFiles();

this.lsHost = new LSHost(this.projectService.host, this, this.projectService.cancellationToken);
let proxyHost:ServerHost = (<any>Object).assign({}, this.projectService.host);
if (projectKind === ProjectKind.Configured && hasExplicitListOfFiles) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does hasExplicitListOfFiles come from?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a constructor parameter to the Project from the ProjectService that creates it.

@vikerman vikerman force-pushed the g3 branch 2 times, most recently from 3cede8f to dd0b3c7 Compare June 15, 2017 23:51
@vikerman vikerman force-pushed the g3 branch 3 times, most recently from f45b666 to c8561e5 Compare June 21, 2017 16:31
…ing all over the file system.

Improves performance when running on a network file system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants